<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>用户中心_{$web_name}</title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta name="Keywords" content="用户中心" />
		<meta name="Description" content="用户中心" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1" />
		<meta name="format-detection" content="telephone=no">
		<tc_include file="Public:head" />
		<link rel="stylesheet" type="text/css" href="/themes/wnsc/Home/User/css/user.css" />
		<link rel="stylesheet" type="text/css" href="/themes/wnsc/Home/User/css/user_common.css" />
		<style type="text/css">
			.user-right .tabmenu{margin-bottom: 0;}
			
		</style>
	</head>

	<body>

		<tc_include file="Public:nav" />
		<div class="w990" id="content" style="background: none;">
			<div class="margin-w1210 clearfix">
				<div class="w">
					<div class="breadcrumb clearfix">
						<a href="/" class="index">首页</a> <span class="crumbs-arrow">&gt;</span> <span class="last">用户中心</span></div>
				</div>
				<div class="blank"></div>
				<tc_include file="Public:user_left" />
				<div class="user-right">
					<div class="box">
						<div class="tabmenu">
							<ul class="tab pngFix">
								<li class="first active">收货地址列表</li>
							</ul>
						</div>
						<div class="alert alert-success">
							<h4>操作提示：</h4>
							<ul>
								<li>您可对已有的地址进行编辑及删除，亦可新增收货地址</li>
							</ul>
						</div>
						<div class="tabmenu">
							<input type="button" value="新增收货地址" onclick="location.href='{:U("user/addressInsert")}'" class="main-btn common-btn">
						</div>
						<div>
							<table width="100%" border="0" cellspacing="0" cellpadding="0" class="bought-table">
								<thead>
									<tr class="col-name">
										<th width="15%" style="border-left: 1px solid #E6E6E6;">收货人</th>
										<th width="25%">所在地区</th>
										<th width="25%">详细地址</th>
										<th width="15%">手机号</th>
										<th width="18%" style="border-right: 1px solid #E6E6E6;">操作</th>
									</tr>
								</thead>
								<tbody class="close-order" id="list_address">
									<foreach name="address" item="v">
									<tr class="order-bd last">
										<td align="center" class="baobei no-border-right order_goods_info">
											<div class="last">{$v.consigner}</div>
										</td>
										<td align="center" class="baobei no-border-right order_goods_info">
											<div class="last">{$v.province}&nbsp;{$v.city}&nbsp;{$v.district}</div>
										</td>
										<td align="center" class="baobei no-border-right order_goods_info">
											<div class="last">{$v.address}</div>
										</td>
										<td align="center" class="baobei no-border-right order_goods_info">
											<div class="last">{$v.mobile}</div>
										</td>
										<td align="center" class="baobei no-border-right order_goods_info">
											<div class="last">
												<a href='{:U("user/addressInsert",array("id"=>$v["address_id"]))}' class="main-btn main-btn-large">修改</a>
												<eq name="v.is_default" value="0">
												<a href='{:U("user/addressisdefault",array("id"=>$v["address_id"]))}' class="main-btn main-btn-large"  style="background: #000;">设置默认</a>
												</eq>
												<neq name="v.is_default" value="0">
													<a href='javascript:;' class="main-btn main-btn-large" style="background: rgba(99, 91, 91, 0.58);">默认地址</a>
												</neq>
											</div>
										</td>
									</tr>
									</foreach>
								</tbody>
							</table>
						</div>
						<div class="blank10"></div>
						<div id="pagination" class="page">
							<div class="page-wrap fr">
								<div class="total">共<span id="totalcount">{$count}</span>条</div>
							</div>
							<style>
							.page-num .next {margin-left:0 ;}
							.page-num a{ float: left;text-align: center;border: 1px solid #eee;height: 35px;line-height: 35px;margin-right:4px;}
							.page-num span{float: left; text-align: center; height: 37px; line-height: 37px; width: 37px; margin-right:4px; background: red; color: #fff;}
							</style>
							<div class="page-num fr">
								{$page}
							</div>
						</div>
					</div>
				</div>

			</div>
		</div>
		<div style="clear: both;"></div>

		<tc_include file="Public:footer" />

	</body>

</html>